package com.rpcfx.api.spi;

import com.rpcfx.api.Router;

import java.util.List;

/**
 * @ProjectName: learning
 * @Package: com.rpcfx.api.spi
 * @ClassName: SimpleRouter
 * @Description:
 * @Date: 2021/11/12 11:01 上午
 * @Version: 1.0
 */
public class SimpleRouter implements Router {


    @Override
    public List<String> route(List<String> urls) {
        System.out.println("当前的route" + urls);
        // TODO: 2021/11/12  测试
        if (urls.size() == 0) {
            urls.add("http://127.0.0.1:88888");
        }
        return urls;
    }
}
